# 目标URL
from http import HTTPStatus
from dashscope import Application


def call_agent_breaking(question):
    print(f"question: {question}")
    response = Application.call(app_id='b757a852ce884e4aaa7a536be0f034b0',
                                prompt=f'{question}',
                                api_key='sk-ac2b11ebdffe47d78824117fc1cfce8a', )

    if response.code != HTTPStatus.OK:
        print(
            'request_id=%s, code=%s, message=%s\n' % (response.request_id, response.status_code, response.output.text))
        return response.output.text
    else:
        return "查询失败。"

# print(get_diabetes_qa("糖尿病可以吃芒果吗"))